package Day1.examples;

import java.util.Scanner;

public class Scannr {

	public static void main(String[] args) {
		Scanner scanner=new Scanner (System.in);
		//name of the Scanner can be any name, in this case its scanner.
		//the above statement will ask for an input value from the user.
		double fnum, snum, result;
		System.out.println("Enter first number Mr.User:");
		fnum=scanner.nextDouble();
		
		System.out.println("Enter second number Mr.User:");
		snum=scanner.nextDouble();
		
		result=snum+fnum;
		System.out.println("The result is:" + result);

	}

}
